package ruru.client.backend.rpcWrapper;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Encapsulates all information regarding a tooltip, including its icon path, name, in-tooltip description, and the css
 * class that colors its rarity level: common, uncommon, rare, epic, etc.
 * 
 * TODO get this working for ambiguous items if that ever needs to happen.
 * @author zane.tian@gmail.com
 */
public class TooltipInfoWrapper implements IsSerializable {
	private String name; 
	private String info; // in-tooltip info in html format
	private String iconPath; // path to the item's icon hosted by wowhead
	private String rarityClass; // css class that gives the item the correct rarity color

	public TooltipInfoWrapper() {

	}

	public TooltipInfoWrapper(String name, String info, String iconPath, String rarityClass) {
		this.name = name;
		this.info = info;
		this.iconPath = iconPath;
		this.rarityClass = rarityClass;
	}
	
	public String getName() {
		return name;
	}

	public String getInfo() {
		return info;
	}

	public String getIconPath() {
		return iconPath;
	}

	/**
	 * Returns the css class for the item's color.
	 */
	public String getRarity() {
		return rarityClass;
	}
}